﻿#define _CRT_SECURE_NO_WARNINGS
#include "List.h"

void Test01()
{
	LTNode* plist = LTInit();
	//检验尾插
	LTPushBack(plist, 1);
	LTPushBack(plist, 2);
	LTPushBack(plist, 3);
	//检验尾删
	//LTPopBack(plist);
	//检验头插
	//LTPushFront(plist, 4);
	//LTPushFront(plist, 2);
	//检验头删
	//LTPopFront(plist);
	//检验查找
	//LTNode* find = LTFind(plist, 2);
	//if (find == NULL)
	//{
	//	printf("没找到！\n");
	//}
	//else
	//{
	//	printf("找到了！\n");
	//}
	//检验在pos位置之后插⼊数据
	//LTInsort(find, 5);
	//检验删除pos节点
	//LTErase(find);
	//检验销毁链表
	LTDestroy(plist);
	LTPrint(plist);
	free(plist);
	plist = NULL;
}

int main()
{
	Test01();
	return 0;
}